<?php
	 /*
	 *会员登录
	 *
	 */
	function _goLogin($table,$where,$data){
			
		if (is_array($where)) {
			$list = M($table)->where($where)->find();
		} else {
			$list = M($table)->where($where,$data)->find();
		}
		if ($list) {
			return $list;	
		} else {
			return 0;
		}			 
	 }	
	/*
	*判断是否登录
	*/
	function error_dump(){
		header("Content-Type: text/html; charset=UTF-8");

		if (!session('boboid')) {
			outClear();
			if (session('user_id')) {
				session(null);
			}
		}
	}
?>